using System;
using System.Collections.Generic;
using System.Text;
using DTO;
using DTO.AP;

namespace DAO.AP
{
    public class PaymentDetDAO
    {
        //man` hi`nh 3
        public void InsertAPDoc(PaymentDet paymentDet)
        {
            DataProvider provider = new DataProvider();
            provider.Open();
            string command = "insert into AP_Payment(Date, VendorID, Amount, VOID, ADID, VOAmount, ADAmount) values ("
                + paymentDet.Date + "," + paymentDet.VendorId + "," + paymentDet.Amount + "," + paymentDet.VoId + "," + paymentDet.AdId + "," + paymentDet.VOAmount + "," + paymentDet.ADAmount + ")";

            provider.ExcuteNonQuery(command);
            provider.Close();
        }
    }
}
